<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="uiTags" prefix="ui"%>

<script type="text/javascript">
var functionEdit={
	saveFunctionEdit:function(){
		submitForm("functionedit_formtable", "function/saveFunctionEdit", "closeCurrentTab()");
	}
}
</script>
<ui:body>
	<div class="easyui-layout" style="width: 100%;height: 100%;" fit="true">
		<div data-options="region:'north',border:false" style="height: 140px">
			<ui:formtable id="functionedit_formtable" >
				<ui:textinput id="function.parentid" hidden="true" defaultvalue="${function.parentid}"/>
				<ui:textinput id="function.functionid" hidden="true" defaultvalue="${function.functionid}"/>
				<ui:textinput id="function.name" defaultvalue="${function.name}" label="功能名称" dataOptions="required:true"/>
				<ui:textinput id="function.url" defaultvalue="${function.url}" label="URL" readOnly="${urlDisabled}" />
				<ui:numberinput id="function.sx" defaultvalue="${function.sx}" precision="0" label="顺序" readonly="${sxDisabled}" dataOptions="required:${!sxDisabled}"/>
				<ui:nextline/>
				<ui:dropdown id="function.gnlx" readOnly="true" code="GNLX" label="功能类型" defaultselect="${function.gnlx}"></ui:dropdown>
				<ui:textinput id="function.bz" defaultvalue="${function.bz}" readOnly="${bzDisabled}" label="备注"/>
			</ui:formtable>
		</div>

		<div data-options="region:'south',border:true"
			style="text-align: right;overflow: hidden;">
			<ui:button onclick="functionEdit.saveFunctionEdit()" icon="icon-ok" value="保存"  />
			<ui:button onclick="closeCurrentTab()" icon="icon-ok" value="关闭" />
		</div>
	</div>
</ui:body>
